package com.fpd.enums;

/**
 * 案件回款状态
 *
 * @author Monster
 */
public enum CaseStateEnum {
	WHK(0, "未回款"),
	DSH(4, "待审核"),
	HKZ(5, "部分回款"),
	YHK(6, "全部回款");

    private int value;
    private String name;

    CaseStateEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getNameByValue(int value) {
        for (CaseStateEnum ate : CaseStateEnum.values()) {
            if (value == ate.getValue()) {
                return ate.getName();
            }
        }
        return "";
    }
}
